﻿package {
	import flash.display.*;
	import flash.events.*;
	public class User extends Sprite {
		private var shape:Shape;
		private var _label:String = "";
		private var _nList:Array = new Array();
		private var _r:Number = 10;
		public function User() {
			buttonMode = true;
			shape = new Shape();
			addChild(shape);
		}
		public function show(tr:Number, tc:Number):void {
			shape.graphics.clear();
			shape.graphics.beginFill(tc);
			shape.graphics.drawCircle(0, 0, tr);
			shape.graphics.endFill();
			if (tr < _r) {
				this.graphics.clear();
				this.graphics.beginFill(0x000000, 0);
				this.graphics.drawCircle(0, 0, _r);
				this.graphics.endFill();
			}
		}
		public function set label(s:String):void {
			_label = s;
		}
		public function get label():String {
			return _label;
		}
		public function set nList(a:Array):void {
			_nList = a;
		}
		public function get nList():Array {
			return _nList;
		}
	}
}